package es.mgil.whoWantsToBeAMillonaire.dialogs;

import android.app.AlertDialog;
import android.app.Dialog;
import android.os.Bundle;
import android.support.v4.app.DialogFragment;
import android.view.LayoutInflater;
import es.mgil.whoWantsToBeAMillonaire.R;
import es.mgil.whoWantsToBeAMillonaire.activities.Main;

public class CreditsDialog extends DialogFragment {
	public static final String CREDITS_DIALOG_ID = "credits_dialog_id";

	@Override
	public Dialog onCreateDialog(Bundle savedInstanceState) {
		Main main = (Main) getActivity();
		AlertDialog.Builder builder = new AlertDialog.Builder(main);
		LayoutInflater inflater = main.getLayoutInflater();
		builder.setView(inflater.inflate(R.layout.layout_credits, null));
		return builder.create();
	}
}